import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SEntityId } from "./SEntityId";
import { EBattleResult } from "./EBattleResult";
type int = number;
//class SArenaCrossBattleRecord
    
    export  class SArenaCrossBattleRecord
    {
       

        public __write(arg1: SerializeStream): void
        {
            arg1.writeInt(this.ring);
            arg1.writeInt(this.battleNumInRing);
            this.entityId.__write(arg1);
            arg1.writeString(this.name);
            this.result.__write(arg1);
            arg1.writeDate(this.battleDt);
            return;
        }

        public __read(arg1: SerializeStream): void
        {
            this.ring = arg1.readInt();
            this.battleNumInRing = arg1.readInt();
            this.entityId = new SEntityId();
            this.entityId.__read(arg1);
            this.name = arg1.readString();
            this.result = EBattleResult.__read(arg1);
            this.battleDt = arg1.readDate();
            return;
        }

        public /* var */ring: int;

        public /* var */battleNumInRing: int;

        public /* var */entityId: SEntityId;

        public /* var */name: string;

        public /* var */result: EBattleResult;

        public /* var */battleDt: Date;
    }
